package paper.domain;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * <p>Class       : paper.domain.Subject
 * <p>Descdription: 开题报告
 * @author  顾力行-gulx@neusoft.com
 * @version 1.0.0
 */
@Entity
@Table(name="report")
public class Report extends BasePaper{
	
	//创建人
	private User creator;
	@OneToOne(cascade = CascadeType.ALL)
	@JoinColumn(name="creator_id")//关联主键
	public User getCreator() {
	      return creator;
	  }
	public void setCreator(User creator) {
	      this.creator = creator;
	}
    
    private Long accessoryId;
    @JsonIgnore//不暴露给前台
    @Column(name="accessory_id")//关联主键
    public Long getAccessoryId() {
        return accessoryId;
    }
    public void setAccessoryId(Long accessoryId) {
         this.accessoryId = accessoryId;
    } 
    
    private String accessoryFileId;
    @Column(name="accessory_file_id")//下载时使用文件ID进行关联
    public String getAccessoryFileId() {
    	return accessoryFileId;
    }
    public void setAccessoryFileId(String accessoryFileId) {
    	this.accessoryFileId = accessoryFileId;
    }    
}
